package com.jia.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName t_user
 */
@TableName(value ="t_user")
@Data
public class User implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 姓名
     */
    @TableField(value = "realname")
    private String realname;

    /**
     * 0:男 1:女
     */
    @TableField(value = "sex")
    private Integer sex;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 身份证
     */
    @TableField(value = "cardid")
    private String cardid;

    /**
     * 创建时间
     */
    @TableField(value = "createtime")
    private Date createtime;

    /**
     * 修改时间
     */
    @TableField(value = "updatetime")
    private Date updatetime;

    /**
     * 积分
     */
    @TableField(value = "integral")
    private Integer integral;

    /**
     * 押金
     */
    @TableField(value = "deposit")
    private Integer deposit;

    /**
     * 状态0：没退还 1：已退还
     */
    @TableField(value = "state")
    private Integer state;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
